<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="true"%>
<%@page import="java.util.*"%>
<%@page import="tr.com.argela.tap.mot.models.TestPoint"%>
<%@page import="tr.com.argela.tap.mot.models.Module"%>
<%@page import="tr.com.argela.tap.mot.models.User"%>
<%@page import="tr.com.argela.tap.mot.dao.TestPointDao"%>
<%@page import="tr.com.argela.tap.mot.dao.ProjectDao"%>
<%@page import="java.sql.*"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
   <html>
<head>

<title>JSP Page</title>
<link rel="stylesheet" type="text/css" href="style/styles.css">
</head>
<body>
 
  <%
     User user = (User)request.getSession().getAttribute("userObject");
     String name = user.getName();
     Long id = user.getId();
%>
  <h4 align="right"><%=name%></h4>
  <h5 align="right"><a href="logout.jsp">Log out</a></h5>
       <dıv> <h1 align="center">MOT</h1><h5 align="center">Memory Of Testing</h5></dıv>


            <div align="left">
        		<table align="left">
        			<tr><td>
      					<h3><a href="analystModel.jsp?id=<%=id%>">Modules</a></h3>
      				</td></tr>
      				<tr><td>
      				   <h3><a href="analystPoint.jsp?id=<%=id%>">Test points</a></h3>
      				</td></tr>
      				<tr><td>
       				  <h3><a href="analystCase.jsp?id=<%=id%>">Test Cases</a></h3>
       				  </td></tr><tr><td>
        			  <h3><a href="export.jsp?id=<%=id%>">Export Document</a></h3>
        		    </td></tr>
        		</table>
        	</div>
          
        <dıv align="right">
        
<%
 TestPoint testpoint = (TestPoint)request.getSession().getAttribute("point");
   if(testpoint==null)
{	
	response.sendRedirect("home2.jsp");
	return;
}

//TestPointDao pointDao = new TestPointDao();
//TestPoint testpoint = pointDao.checkpoint(pointId);


%>



<table border="2" align="center">

<tr>
<th align="center" colspan="2">Test Point <%=testpoint.getName()%>'s properties</th>
</tr>
<tr>
<th>Test Point Name</th>
<td><%=testpoint.getName()%></td>
</tr>
<tr>
<th>User Name</th>
<td><%=testpoint.getUser().getName()%></td>
</tr><tr>
<th>Test Point Description</th>
<td><%=testpoint.getDescription()%></td>
</tr><tr>
<th>Module Name</th>
<td><%=testpoint.getModule().getName()%></td>
</tr>
</table>


	    </dıv>
</body>
</html>